package com.zzl.study.auth.dao;

import com.zzl.study.auth.domain.SysUserEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author: zhangzl
 * @date: 2023/12/11 19:02
 * @version: 1.0
 * @description: 系统用户Mapper
 */
@Repository
public interface SysUserMapper {

    /**
     * 根据登录账号查询用户对象
     *
     * @param username 登录账号
     * @return 用户对象
     */
    SysUserEntity selectSysUserByUsername(@Param("username") String username);

    /**
     * 根据登录账号查询用户对象
     *
     * @param tel 手机号
     * @return 用户对象
     */
    SysUserEntity selectSysUserByTel(@Param("tel") String tel);

}
